-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[EASI-4658] Integrate discussions tagging #2917
[EASI-4658] Integrate discussions tagging #2917
Conversation
Removed duplicate ID on container in previous PR. Caused a bug where mention suggestions box does not render correctly. Replacing duplicate ID prop for now.
Use editor element instead of ID to append suggestions popup
…rate-tagging-discussions
@@ -31,6 +31,6 @@ func createTaggedHTMLPolicy() *bluemonday.Policy { | |||
policy := bluemonday.NewPolicy() | |||
// rules for tags | |||
policy.AllowElements("span", "p") | |||
policy.AllowAttrs("data-type", "class", "tag-type", "data-id-db").OnElements("span") | |||
policy.AllowAttrs("data-type", "class", "tag-type", "data-id-db", "data-label").OnElements("span") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiptap needs a data-label
attribute to render the mention labels. Without this attribute, the mentions just rendered as an empty span
tag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!! 🔥
getReferenceClientRect: getClientRect(props), | ||
appendTo: () => document.getElementById(editorID) || document.body, | ||
appendTo: props.editor.options.element, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated this to use the editor element instead of getting it from the id
prop. This way we don't have to have duplicate id
attributes on both the editor and container.
EKS Ingress URLs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall really awesome work and works great :)
This seems to be displaying the oldest discussion, not the most recent. It doesn't seem to be related to cache/refresh. Also looks like we want to get the latest discussion or reply. If the latest activity is a reply, render that discussion as the latest activity?
const recentDiscussion = |
Getting some translation key instead of translated text
Doesn't seem to have an existing i18n namespace
const { t } = useTranslation('discussionsMisc'); |
@patrickseguraoddball @aterstriep Maybe we should figure out how this should work with Zoë and Jeff, since the |
|
@patrickseguraoddball @ClayBenson94 this is fixed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG Thanks for getting that recent activity resolved!
ce5a0be
into
feature/EASI-4614_grb_discussions
EASI-4658
Figma
Description
MentionTextArea
component folderHow to test this change
PR Author Checklist
PR Reviewer Guidelines